#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int i, j, k, m, n, a, b, c,d;
	for (i = 0; i <= 2; i++)
	{
		for (j = 1; j <= 6 - 2*i; j++)
			printf(" ");
		for (k = 1; k <= 4 * i + 4; k++)
			printf("*");
		for (m = 1; m <= 9-4*i; m++)
				printf(" ");
		for(k = 1; k <= 4*i+4; k++)
				printf("*");
		printf("\n");
	}
	for (a = 1; a <= 3; a++)
	{
		for (n = 1; n <= 29; n++)
			printf("*");
		printf("\n");
	}
	for (c = 1; c <= 7; c++)
	{
		for (d = 1; d <= 2*c; d++)
			printf(" ");
		for (b = 1; b <= 29-4*c; b++)
			printf("*");
		printf("\n");
	}

}